import { createRouter, createWebHashHistory } from 'vue-router'
import Detail from '../components/Detail.vue';

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            // 键值对传参直接写路径就可，不需要占位符，自动解析键值对
            path: '/detail',
            component: Detail
        }
    ]
});
export default router;